package com.yonxao.demo.crud.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.yonxao.demo.crud.core.IEntityEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 真假、是否 枚举类
 *
 * @author xiaosaguo
 * @date 2021/03/15
 */
@AllArgsConstructor
@Getter
public enum BooleanEnum implements IEntityEnum {

    FALSE((byte) 0, "假/否/禁用/不生效"),
    TRUE((byte) 1, "真/是/启用/生效"),
    ;

    @EnumValue
    private final Byte code;
    private final String description;
}
